package com.woniuxy.pxxt.service.impl;


import com.woniuxy.pxxt.common.result.Result;
import com.woniuxy.pxxt.dao.CategoryDao;
import com.woniuxy.pxxt.dto.SelectMenuDto;
import com.woniuxy.pxxt.service.CategoryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 是培训课程的类别(Category)表服务实现类
 *
 * @author makejava
 * @since 2022-03-07 16:28:19
 */
@Service
public class CategoryServiceImpl implements CategoryService {
    @Autowired
    private CategoryDao categoryDao;
    @Override
    public Result findCategoryMenu() {
        List<SelectMenuDto> menuDto = categoryDao.findCategoryMenu();
        return Result.ok(menuDto);
    }
}
